/*
 * The MIT License
 *
 * Copyright 2015 chronosinfo.com.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 * Autor John Vanderson M Lima
 */

package com.chronos.pafecf.entidades;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author usuario
 */
@Entity
@Table(name = "ECF_RESOLUCAO", catalog = "", schema = "")
@NamedQueries({
    @NamedQuery(name = "EcfResolucao.findAll", query = "SELECT e FROM EcfResolucao e")})
public class EcfResolucao implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID", nullable = false)
    private Integer id;
    @Column(name = "RESOLUCAO_TELA", length = 20)
    private String resolucaoTela;
    @Column(name = "LARGURA")
    private Integer largura;
    @Column(name = "ALTURA")
    private Integer altura;
    @Column(name = "IMAGEM_TELA", length = 50)
    private String imagemTela;
    @Column(name = "IMAGEM_MENU", length = 50)
    private String imagemMenu;
    @Column(name = "IMAGEM_SUBMENU", length = 50)
    private String imagemSubmenu;
    @Column(name = "HOTTRACK_COLOR", length = 20)
    private String hottrackColor;
    @Column(name = "ITEM_STYLE_FONT_NAME", length = 20)
    private String itemStyleFontName;
    @Column(name = "ITEM_STYLE_FONT_COLOR", length = 20)
    private String itemStyleFontColor;
    @Column(name = "ITEM_SEL_STYLE_COLOR", length = 20)
    private String itemSelStyleColor;
    @Column(name = "LABEL_TOTAL_GERAL_FONT_COLOR", length = 20)
    private String labelTotalGeralFontColor;
    @Column(name = "ITEM_STYLE_FONT_STYLE", length = 20)
    private String itemStyleFontStyle;
    @Column(name = "EDITS_COLOR", length = 20)
    private String editsColor;
    @Column(name = "EDITS_FONT_COLOR", length = 20)
    private String editsFontColor;
    @Column(name = "EDITS_DISABLED_COLOR", length = 20)
    private String editsDisabledColor;
    @Column(name = "EDITS_FONT_NAME", length = 20)
    private String editsFontName;
    @Column(name = "EDITS_FONT_STYLE", length = 20)
    private String editsFontStyle;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "idEcfResolucao")
    private List<EcfConfiguracao> ecfConfiguracaoList;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "ecfResolucao")
    private List<EcfPosicaoComponentes> ecfPosicaoComponentesList;

    public EcfResolucao() {
    }

    public EcfResolucao(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getResolucaoTela() {
        return resolucaoTela;
    }

    public void setResolucaoTela(String resolucaoTela) {
        this.resolucaoTela = resolucaoTela;
    }

    public Integer getLargura() {
        return largura;
    }

    public void setLargura(Integer largura) {
        this.largura = largura;
    }

    public Integer getAltura() {
        return altura;
    }

    public void setAltura(Integer altura) {
        this.altura = altura;
    }

    public String getImagemTela() {
        return imagemTela;
    }

    public void setImagemTela(String imagemTela) {
        this.imagemTela = imagemTela;
    }

    public String getImagemMenu() {
        return imagemMenu;
    }

    public void setImagemMenu(String imagemMenu) {
        this.imagemMenu = imagemMenu;
    }

    public String getImagemSubmenu() {
        return imagemSubmenu;
    }

    public void setImagemSubmenu(String imagemSubmenu) {
        this.imagemSubmenu = imagemSubmenu;
    }

    public String getHottrackColor() {
        return hottrackColor;
    }

    public void setHottrackColor(String hottrackColor) {
        this.hottrackColor = hottrackColor;
    }

    public String getItemStyleFontName() {
        return itemStyleFontName;
    }

    public void setItemStyleFontName(String itemStyleFontName) {
        this.itemStyleFontName = itemStyleFontName;
    }

    public String getItemStyleFontColor() {
        return itemStyleFontColor;
    }

    public void setItemStyleFontColor(String itemStyleFontColor) {
        this.itemStyleFontColor = itemStyleFontColor;
    }

    public String getItemSelStyleColor() {
        return itemSelStyleColor;
    }

    public void setItemSelStyleColor(String itemSelStyleColor) {
        this.itemSelStyleColor = itemSelStyleColor;
    }

    public String getLabelTotalGeralFontColor() {
        return labelTotalGeralFontColor;
    }

    public void setLabelTotalGeralFontColor(String labelTotalGeralFontColor) {
        this.labelTotalGeralFontColor = labelTotalGeralFontColor;
    }

    public String getItemStyleFontStyle() {
        return itemStyleFontStyle;
    }

    public void setItemStyleFontStyle(String itemStyleFontStyle) {
        this.itemStyleFontStyle = itemStyleFontStyle;
    }

    public String getEditsColor() {
        return editsColor;
    }

    public void setEditsColor(String editsColor) {
        this.editsColor = editsColor;
    }

    public String getEditsFontColor() {
        return editsFontColor;
    }

    public void setEditsFontColor(String editsFontColor) {
        this.editsFontColor = editsFontColor;
    }

    public String getEditsDisabledColor() {
        return editsDisabledColor;
    }

    public void setEditsDisabledColor(String editsDisabledColor) {
        this.editsDisabledColor = editsDisabledColor;
    }

    public String getEditsFontName() {
        return editsFontName;
    }

    public void setEditsFontName(String editsFontName) {
        this.editsFontName = editsFontName;
    }

    public String getEditsFontStyle() {
        return editsFontStyle;
    }

    public void setEditsFontStyle(String editsFontStyle) {
        this.editsFontStyle = editsFontStyle;
    }

    public List<EcfConfiguracao> getEcfConfiguracaoList() {
        return ecfConfiguracaoList;
    }

    public void setEcfConfiguracaoList(List<EcfConfiguracao> ecfConfiguracaoList) {
        this.ecfConfiguracaoList = ecfConfiguracaoList;
    }

    public List<EcfPosicaoComponentes> getEcfPosicaoComponentesList() {
        return ecfPosicaoComponentesList;
    }

    public void setEcfPosicaoComponentesList(List<EcfPosicaoComponentes> ecfPosicaoComponentesList) {
        this.ecfPosicaoComponentesList = ecfPosicaoComponentesList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EcfResolucao)) {
            return false;
        }
        EcfResolucao other = (EcfResolucao) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.chronos.pafecf.entidades.EcfResolucao[ id=" + id + " ]";
    }

    public void setHotTrackColor(String string) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
